package com.note.config;


import com.note.beans.OtherBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//标注类为Spring核心配置文件
@Configuration
//扫描包，生成bean
@ComponentScan("com.note")
//加载资源
@PropertySource("classpath:jdbc.properties")
//加载其他资源类
@Import(OtherBean.class)
public class SpringConfig {
}
